﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class functon : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["usr"] == null)
        {

            lbl.Text = "您还没有登录";
        }
        else
        {

            if(func.isadmir(Session["usr"].ToString()))
            {
                lbl.Text = "欢迎管理员"+ Session["usr"];

            }
            else
            {
                lbl.Text = "欢迎用户" + Session["usr"];
            }
        }
    }
}
